package com.gxgeek;

import sun.misc.Unsafe;

import java.lang.reflect.Field;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * Hello world!
 */
public class App {

    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {

//        Field f = Unsafe.class.getDeclaredField("theUnsafe");
//        f.setAccessible(true);
//        Unsafe unsafe = (Unsafe) f.get(null);
//
//        System.out.println(unsafe);
//        System.out.println(unsafe.addressSize());
//        System.out.println(unsafe.pageSize());
//        System.out.println("Hello World!");

//        int a, b, c;
//        a = b = c = 1;
//        System.out.println(a);
//        System.out.println(b);
//        System.out.println(c);
//        System.out.println(a);
//        test();
        int a = 10;

        if (a>1){
            System.out.println("1");
        }else if (a>2){
            System.out.println("2");
        }
    }




    public static void test() {
        MainTest n1 = new MainTest(1);
        MainTest n2 = new MainTest(2);
//        n1 = n1.note = n2;//------1-------
//        n1.note = n1 = n2;//------2-------
        n1.println();
        n1.note.println();
    }
}

class MainTest {
    public MainTest note;
    public int i;

    public MainTest(int j) {
        this.i = j;
    }

    public void println() {
        System.out.println(" " + i);
    }
}
